package com.zbkj.common.request.order;


import com.zbkj.common.request.PageParamRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "InvoiceApplySaveRequest对象", description = "客户端-开票申请")
public class InvoiceApplySaveRequest extends PageParamRequest{

    @NotNull(message = "订单ID不能为空")
    private Long id;

    @NotNull(message = "开票类型不能为空")
    private Integer invoiceType;

    @NotBlank(message = "抬头不能为空")
    private String headName;

    @NotBlank(message = "统一信用代码不能为空")
    private String creditCode;

    @NotBlank(message = "邮箱不能为空")
    private String email;
}
